<%layout("/common/_layout.html"){ %>

<%#ajax userTable:{%>
<div class="am-cf am-padding">
  <div class="am-fl am-cf"> <strong class="am-text-primary am-text-lg">系统管理</strong>
    /
    <small>工号查询</small>
  </div>
</div>

<div class="am-g">
  <div class="am-u-sm-12">
    <form class="am-form" id="list-form" action="${base}/memberOrg/queryEmpCodeInfo" method="post">
      <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
        <tbody>
          <tr>
            <th class="am-text-middle">手机号</th>
            <td>
              <div class="am-u-sm-10">
                <input type="text" id="cellphone" name="cellphone" class="am-form-field am-input-sm" value="${cellphone!}" minlength="11" maxlength="11" placeholder="输入11位手机号" required/>
              </div>
            </td>
            <td >
              <div align='right'>
                <button type="submit" class="am-btn am-btn-default am-btn-sm am-text-secondary" id="submit-btn">搜索</button>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
  <%if (result == 1){%>
  <div class="am-u-sm-12">
    <table class="am-table am-table-bordered am-table-radius table-main" style="padding:0;">
      <tbody>
        <tr>
          <th class="am-text-middle" colspan="4">大掌柜系统信息</th>
        </tr>
        <tr>
          <th class="am-text-middle">姓名</th>
          <td>
            <div class="am-u-sm-10">${name!'----'}</div>
          </td>
          <th class="am-text-middle">帐号</th>
          <td>
            <div class="am-u-sm-10">${user_name!'----'}</div>
          </td>
        </tr>
        <tr>
          <th class="am-text-middle">身份</th>
          <td>
            <div class="am-u-sm-10">${member_type!'----'}</td>
            <th class="am-text-middle">所属店铺</th>
            <td>
              <div class="am-u-sm-10">${DisplayName!'----'}</div>
            </td>
          </tr>
          <tr>
            <th class="am-text-middle">系统工号</th>
            <td>
              <div class="am-u-sm-10">${emp_code!'----'}</div>
            </td>
            <th class="am-text-middle" colspan="2"></th>
          </tr>
          <tr>
            <th class="am-text-middle" colspan="4"></th>
          </tr>
          <tr>
            <th class="am-text-middle" colspan="4">BOSS系统信息</th>
          </tr>
          <%if(bossStatus==0){%>
          <tr>
            <td class="am-text-middle" colspan="4">${bossMsg!}</td>
          </tr>
          <%}else{%>
          <tr>
            <th class="am-text-middle">城市名称</th>
            <td>
              <div class="am-u-sm-10">${regionName!}</div>
            </td>
            <th class="am-text-middle">地市编码</th>
            <td>
              <div class="am-u-sm-10">${regionId!}</div>
            </td>
          </tr>
          <%for(list in empList!){%>
          <tr>
            <th class="am-text-middle">员工姓名</th>
            <td>
              <div class="am-u-sm-10">${list.LOGIN_NAME!}</div>
            </td>
            <th class="am-text-middle">工号</th>
            <td>
              <div class="am-u-sm-10">${list.LOGIN_NO!}</div>
            </td>
          </tr>
          <%}}%></tbody>
      </table>
    </div>
  </div>
  <%}else{%>
  <div class="am-cf">
    <div class="am-kai">
      <h3>没有找到该手机号对应的人员信息!</h3>
    </div>
  </div>
  <%}%></div>

<div class="am-modal am-modal-no-btn" tabindex="-1" id="modal">
  <div class="am-modal-dialog">
    <div class="am-modal-hd"> <i class="am-icon-refresh am-icon-spin"></i>
      <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
    </div>
    <div class="am-modal-bd">正在处理，请稍等...</div>
  </div>
</div>
<%}%>
<%}%>